from gtts import gTTS

def text_to_audio(text, output_path):
    tts = gTTS(text=text, lang='zh')
    tts.save(output_path)
    return output_path 